package com.yupi.springbootinit.strategy;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yupi.springbootinit.datasource.DataSource;
import org.apache.poi.ss.formula.functions.T;

/**
 * 策略模式接口
 * @author LZH
 * @date 2023/6/13
 */
public interface SearchStrategy<T> {

    /**
     * 统一接口
     * @param dataSource
     * @param searchText
     * @param pageNum
     * @param pageSize
     * @return
     */
    Page<T> searchContent(DataSource<T> dataSource, String searchText, Integer pageNum, Integer pageSize);
}
